package top.lyunz.fangkeji.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import top.lyunz.fangkeji.bean.AppointmentRecord;
import top.lyunz.fangkeji.mapper.AppointmentRecordMapper;
import top.lyunz.fangkeji.service.AppointmentRecordService;
@Service
public class AppointmentRecordServiceImpl implements AppointmentRecordService {
	@Autowired
	private AppointmentRecordMapper AppointmentRecordMapper;
	@Override
	public AppointmentRecord getAppointmentRecordByapId(int apId) {
		// TODO Auto-generated method stub
		return AppointmentRecordMapper.getAppointmentRecordByapId(apId);
	}

	@Override
	public AppointmentRecord getAppointmentRecordByApIdentity(String apIdentity) {
		// TODO Auto-generated method stub
		return AppointmentRecordMapper.getAppointmentRecordByApIdentity(apIdentity);
	}

	@Override
	public int addAppointmentRecord(AppointmentRecord appointmentRecord) {
		// TODO Auto-generated method stub
		return AppointmentRecordMapper.addAppointmentRecord(appointmentRecord);
	}

	@Override
	public int updAppointmentRecord(AppointmentRecord appointmentRecord) {
		// TODO Auto-generated method stub
		return AppointmentRecordMapper.updAppointmentRecord(appointmentRecord);
	}

	@Override
	public List<AppointmentRecord> getUnreviewedAppointmentRecord(int uid) {
		// TODO Auto-generated method stub
		return AppointmentRecordMapper.getUnreviewedAppointmentRecord(uid);
		
	}

	@Override
	public List<AppointmentRecord> getcompletedAppointmentRecord(int uid) {
		// TODO Auto-generated method stub
		return AppointmentRecordMapper.getcompletedAppointmentRecord(uid);
	}

	@Override
	public List<AppointmentRecord> getallAppointmentRecord(int uid) {
		// TODO Auto-generated method stub
		return AppointmentRecordMapper.getallAppointmentRecord(uid);
	}
	@Override
	public List<AppointmentRecord> getviAppointmentRecord(int uid) {
		// TODO Auto-generated method stub
		return AppointmentRecordMapper.getviAppointmentRecord(uid);
	}
	
	@Override
	public List<AppointmentRecord> getAppointmentsbyapTel(String apTel) {
		// TODO Auto-generated method stub
		return AppointmentRecordMapper.getAppointmentsbyapTel(apTel);
	}	
	

}
